package com.test.mchelepesa.bean_rice.user_info_rice;

import com.test.mchelepesa.util_rice.StringUtil_rice;
import com.google.gson.Gson;

import org.json.JSONObject;

/**
 * 用户登录信息，只在用户手动登录时获取，自动登录不获取
 */
public class OcrInfo_Viet_rice {

    private static class Inner {
        private static OcrInfo_Viet_rice instance = new OcrInfo_Viet_rice();
    }

    private OcrInfo_Viet_rice(){}

    public static OcrInfo_Viet_rice getInstance(){
        return Inner.instance;
    }

    public static void parse(JSONObject objJson){
        Inner.instance = new Gson().fromJson(objJson.toString(), OcrInfo_Viet_rice.class);
    }

    private String idcard_number,name,birthday,hometown,address,gender,expire_date;

    public String getIdcard_number() {
        return StringUtil_rice.getSafeString(idcard_number);
    }

    public String getName() {
        return StringUtil_rice.getSafeString(name);
    }

    public String getBirthday() {
        return StringUtil_rice.getSafeString(birthday);
    }

    public String getHometown() {
        return StringUtil_rice.getSafeString(hometown);
    }

    public String getAddress() {
        return StringUtil_rice.getSafeString(address);
    }

    public String getGender() {
        return StringUtil_rice.getSafeString(gender);
    }

    public String getExpire_date() {
        return StringUtil_rice.getSafeString(expire_date);
    }

}
